package action;

import java.util.Vector;

import dominio.GestorUsuario;

public class Tabla {

	
	public String print() throws Exception{
	    
		Vector <Vector<String>> v=new GestorUsuario().listar();
		String tabla="<table border='1'><tr><th>Nombre</th><th>Apellido1</th><th>Apellido1</th>"
				+ "<th>pass</th><th>direccion</th><th>localidad</th><th>pais</th></tr>";
		for(Vector <String> aux:v){
			tabla+="<tr>";
			for(String s:aux){
				tabla+="<td>"+s+"</td>";
			}
			tabla+="</tr>";
		}
		tabla+="</table>";
		return tabla;
	}
}
